package com.zcup.designer.contribute.builder;

import java.util.ArrayList;
import java.util.List;

public class Product {
    List<String> parts = new ArrayList<>();

    public void add(String part) {
        parts.add(part);
    }

    public void show(){
        System.out.println("===================");
        for (String part : parts) {
            System.out.println("part: " + part);
        }
        System.out.println("===================");
    }
}
